From 5658441ab9b703c95a48e654d41e45cc3a55ffd3 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Fri, 28 Nov 2025 22:46:47 -0500 Subject: middleware: migrate to tailwindcss --- middleware/src/app/[gameName]/page.tsx | 203 ++++++--------------------------- 1 file changed, 32 insertions(+), 171 deletions(-) (limited to 'middleware/src/app/[gameName]') diff --git a/middleware/src/app/[gameName]/page.tsx b/middleware/src/app/[gameName]/page.tsx index f87edc1..ed5361a 100644 --- a/middleware/src/app/[gameName]/page.tsx +++ b/middleware/src/app/[gameName]/page.tsx @@ -91,7 +91,7 @@ export async function generateMetadata({ const images = imagesResult.rows.map((img) => ({ image: img.image_url, link: img.link_url, - })); + })); const dbPost = { news_id: row.news_id, date: row.date, @@ -356,92 +356,36 @@ function NewsPostPage({ : null; return ( -
-
-
+
+
+
{/* Post Header */} -
-
+
+
{date}
{newsPost.type && ( -
+
{newsPost.type}
)}
{/* Content */} -
+
{displayHeadline && ( -

+

{displayHeadline}

)} -
+ +
{displayContent .split(/(\[.*?\]\(.*?\)|https?:\/\/[^\s]+)/g) .map((part, idx) => { const linkMatch = part.match(/\[(.*?)\]\((.*?)\)/); const urlMatch = part.match(/https?:\/\/[^\s]+/); + if (linkMatch) { return ( {linkMatch[1]} ); } + if (urlMatch) { return ( {urlMatch[0]} ); } - return part; + + return ( + + {part} + + ); })}
{/* AI Disclaimer */} {newsPost.is_ai_summary && ( -
+
This content was generated using AI and may contain inaccuracies
)} {/* Machine Translation Disclaimer */} {(newsPost.en_headline || newsPost.en_content) && lang === "en" && ( -
+
This is a machine translation and may contain errors
)} {/* Images */} {newsPost.images && newsPost.images.length > 0 && ( -
+
News visual
)} {/* Read More Link */} {newsPost.url && ( -
+
READ MORE @@ -563,29 +464,11 @@ function NewsPostPage({
{/* About 573 UPDATES */} -
-

+
+

This is a perma-link hosted on 573 UPDATES

-

+

A news aggregator for some arcade (and some not-so arcade) games. Image data is loaded from external sources, and as such may not always be available. @@ -593,32 +476,10 @@ function NewsPostPage({

{/* Navigation Buttons */} -
+
Back to 573 UPDATES -- cgit v1.2.3